package org.example.dao;

import com.jiazhong.mybatis.dao.BaseDAO;
import org.example.bean.Emp;

import java.util.Arrays;

public class DemoA {
    public static void main(String[] args) {
        // 1.设置库和密码
        BaseDAO bdao = new BaseDAO("a123456","oa");
        String sql = "select * from emp";
        Object[][] all = bdao.findAll(sql, Emp.class);
        System.out.println(Arrays.deepToString(all));
    }
}
